CC=gcc
CFLAGS=-Wall -g
LIBPATH=../../..
INCLS=-I$(LIBPATH)/include -I/usr/include/mysql
LIBS=-L$(LIBPATH)/lib -lsoar_g -L/usr/lib/mysql -lmysqlclient_r -lcrypto -lpthread -lm

BINS=my_emp my_emp_mt

all : $(BINS)

$(BINS) : % : %.c
	$(CC) $(CFLAGS) $(INCLS) -o $@ $< $(LIBS)
	chmod 744 $@

clean :
	rm -f core* $(BINS)
